#include "pilotSubView.h"
#include "camera/ortho_camera.h"

PilotSubView::PilotSubView(const Rectangle& viewport,SceneModel& model)
	:	SceneView(viewport,model){
	Point center = model.getHelicopter().getDimensions().center();
	Cube viewVolume = Cube(Point(-4,-4,0),Point(4,4,90));

	camera = new OrthoCamera(center+Point(0,0,-2),center+Point(0,0,-3),Point(0,1,0),viewVolume);
}

PilotSubView::~PilotSubView(){

}

void PilotSubView::setEnv(){
	glViewport ((GLint) viewport.x1,(GLint) viewport.y1, (GLsizei) viewport.width(), (GLsizei) viewport.height());
}
